package com.wisdom.admin.component;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author mingc
 * @ClassName DemoTask.java
 * @Description 定时任务示例
 * @createTime 2021-03-30 4:25 下午
 */
@Component
public class DemoTask {
    private static final Logger LOGGER = LoggerFactory.getLogger(DemoTask.class);

    @Scheduled(cron = "0/10 * * ? * ?")
    private void demo() {
        //LOGGER.info("DemoTask执行:{}",true);
    }
}
